/* 
 * File:   main.c
 * Author: kmcha_000
 *
 * Created on 4 stycznia 2015, 13:19
 */

#include <cstdlib>
#include <iostream>

#include "common.h"
#include "lexer.h"
#include "parser.h"
#include "codegenerator.h"

using namespace std;

SymbolTable symbolTable;
CodeGenerator codegenerator(symbolTable);

/*
 * 
 */
int main(int argc, char** argv) {
    yyparse();
    
    cout << symbolTable.toString();
    
    codegenerator.createASMFile("generated.asm");
    
    return 0;
}